//
//  WorkOrderListViewController.h
//
//  Created by Olof Millberg on 2010-03-24.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "WONewWorkOrderViewController.h"
#import "Workorder.h"

@interface WOListViewController : UIViewController <UITableViewDelegate, UITableViewDataSource, UISearchDisplayDelegate, UISearchBarDelegate>
{
	NSMutableArray* myWorkOrders;
	NSMutableArray* workOrderList;
	NSMutableArray* unassignedWorkOrders;
	NSMutableArray *priorities;
	NSArray* filteredList;
	UISearchBar *searchBar;
	UISearchDisplayController *searchDC;
	UITableView *tableView;
	UIToolbar *toolBar;
	UISegmentedControl *categorySelector;
	WorkOrder *currentWorkorder;
}

@property (nonatomic, retain) NSMutableArray* workOrderList;
@property (nonatomic, retain) NSArray* filteredList;
@property (nonatomic, retain) UISearchBar *searchBar;
@property (nonatomic, retain) UISearchDisplayController *searchDC;
@property (nonatomic, retain) WorkOrder *currentWorkorder;
@property (nonatomic, retain) IBOutlet UITableView *tableView;
@property (nonatomic, retain) IBOutlet UIToolbar *toolBar;
@property (nonatomic, retain) IBOutlet UISegmentedControl *categorySelector;

- (void) updateWorkorder;
- (void) appearingAnimation;
- (void) disappearingAnimation;

@end
